﻿using Canteen.Core.Models;
using System.Threading.Tasks;

namespace Canteen.Core.Services
{
    public interface IProductService
    {
        Task<Product> CreateProduct(Product product);
        Task<Product> UpdateProduct(Product product);
        Task<bool> DeleteProduct(int id);
        Task<Product> SelectProductById(int id);
        Task<Product> SelectProductByCode(string code);
        Task<PageList<Product>> GetPageList(ProductPageParameters parameters,int storeId);
    }
}
